package com.example.springboot_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot_system.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public interface UserMapper extends BaseMapper<User> {

    List<User> findByDepartmentAndDepartmentType(@Param("department") Integer department, @Param("departmentType") Integer departmentType);

    Integer update(User user);

    User findById(String doctorId);
    //通过Email查询用户
    User findUserByName(String username);
}

